package com.guocheng.modules.login.model.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.guocheng.base.BaseModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class MenuDTO extends BaseModel {

    @JsonIgnore
    private Integer id;         //菜单id
    private String title;       //菜单名称
    private String href;        //菜单链接
    private String icon;        //图标样式class
    @JsonIgnore
    private Integer parentId;       //父id

    private List<MenuDTO> child;       //子菜单
}
